<ul class="pm-list" >
<?
if(is_array($records )){
foreach ($records as $r ){ ?>
  <li>
    <div>uid <?=$r['uid']?></div>
    <div>键 <?=$r['key']?></div>
    <div>创建日期 <?=$r['input_time']?></div>
    <div>内容 <?=$r['content']?></div>
    <div>发件人 <?=$r['from']?></div>
    <div>
      <a href="/pm/view/<?=$r['id']?>" >查看</a>
      <a href="/pm/edit/<?=$r['id']?>" >编辑</a> 
    </div>
  </li>
<?  }
}?>
</ul>
<?=$pagination?>